home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
COMM
/
PPL4P10A
/
GET_BUGS.SS
< prev
next >
Wrap
Text File
|
1995-02-20
|
2KB
|
142 lines
################################
# --- get_bugs.ss --- #
# log onto MSC BBS (TriBBS) #
# and download BUGS.DOC from #
# library 5. #
################################
# IMPORTANT: Assumes that your #
# default protocol is ZMODEM #
################################
# Compile with BUILDER ver 2 #
################################
#
# define parameters to use
#
USER: STRING "GUEST GUEST!"
PASSWORD: STRING "GUEST!"
PROTOCOL: STRING "Z"
PHONE: STRING "1,205,880,9748!"
FILENAME: STRING "BUGS.DOC"
#
# Dial phone
#
SETPACE 0.2
SETWAIT 5.0
REPLY "!AT!"
WAITFOR "OK"
IFTRUE DIAL
SAY "Expected OK not received"
GOTO ERROR
DIAL:
SETWAIT 45.0
REPLY "ATDT"
REPLY PHONE
WAITFOR "CONNECT"
IFTRUE LOGIN
SAY "Expected CONNECT not found"
GOTO ERROR
#
# no graphics
#
LOGIN:
SETWAIT 30
REPLY CR
WAITFOR "graphics (y/N)?|LAST name:"
IF "0" THEN GET_NAME
IF "1" THEN GOT_NAME
SAY "'graphics (y/N)?' not received"
GOTO ERROR
#
# enter name
#
GET_NAME:
REPLY CR
WAITFOR "LAST name:"
IFTRUE GOT_NAME
SAY "'LAST name' not received"
GOTO ERROR
GOT_NAME:
REPLY USER
#
# enter password
#
WAITFOR "password:"
IFFALSE ERROR
REPLY PASSWORD
#
# "more?" or "Main Menu:"
#
MORE:
WAITFOR "more?|Main Menu:"
IF "1" THEN SKIP_MAIN
IFNOT "0" THEN ERROR
REPLY CR
GOTO MORE
SKIP_MAIN:
REPLY CR
#
# select Files
#
WAITFOR PROMPT
IFFALSE ERROR
REPLY "F"
#
# select Change
#
WAITFOR PROMPT
IFFALSE ERROR
REPLY "C"
#
# select file area 5
#
WAITFOR "file area:"
IFFALSE ERROR
REPLY "5!"
#
# Download BUGS.DOC
#
WAITFOR PROMPT
IFFALSE ERROR
REPLY "D"
WAITFOR "download:"
IFFALSE ERROR
REPLY "BUGS.DOC!"
WAITFOR "download:"
IFFALSE ERROR
REPLY CR
WAITFOR "to continue:"
IFFALSE ERROR
REPLY CR
#
# download BUGS.DOC
#
DELAY 0.25
PROTOCOL PROTOCOL
RECEIVE FILENAME
SAY "Download complete"
#
# say goodbye
#
QUIET 0.5
REPLY CR
WAITFOR PROMPT
IFFALSE ERROR
REPLY "G!"
SAY "Hanging up..."
REPLY CR
HALT
#
# error exit
#
ERROR: SAY " "
SAY "Error !"
STATUS
HALT
#
# common strings
#
PROMPT: STRING "?]?"
CR: STRING "!"
#
END